﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;


namespace WCFHost
{
    class Program
    {
        static void Main(string[] args)
        {
            ServiceHost host_lobby; 
            ServiceHost host_room;


            Console.WriteLine("creating host for lobby services...");
            host_lobby = new ServiceHost(typeof(WCFGameService.LobbyService));
            host_lobby.Open();
            
            Console.WriteLine("creating host for room services...");
            host_room = new ServiceHost(typeof(WCFGameService.RoomService));
            host_room.Open();
            
   

            Console.WriteLine("FRAG WCF host stated");

            Console.WriteLine("press any key to close the server");
            Console.ReadKey();

            host_lobby.Close();
            host_room.Close();

      

        }
    }
}
